{extend name="public/base"}

{block name="title"}就行天下-防伪{/block}

{block name="style"}
<link rel="stylesheet" href="__STATIC__/home/css/richscan.css" />
<style>
    .no_subscribe {
        position: fixed;
        top:2.4rem;
        left: 0;
        right: 0;
        height:2rem;
        line-height: 2rem;
        background: rgba(0, 0, 0, .6);
        z-index: 100000000;
        color: #fff;
        padding-left: 5px;
    }

    .no_subscribe a {
        position: absolute;
        right: 5px;
        top: 5px;
    }
</style>
{/block}



{block name="main"}
<div class="pageControl bg-f5">
    <div class="main-top"></div>
    <div class="msui_nav msui_navTop noBorder">
        <a class="msui_navTop-back" href="javascript:history.back();"><i class="micon-back"></i></a>
        <h1 class="msui_navTop-title">防伪/收货</h1>
        <a href="" class="msui_navTop-right msui_navTop-cnav"><i class="micon-cnav"></i></a>
    </div>
    {empty name="Think.session.check_subscribe_val" value="no"}
    <div class="no_subscribe fs07">关注公众号赢好礼， <a href="{:url('base/subscribe')}" class="weui-btn weui-btn_mini weui-btn_primary"> + 关注</a> </div>
    {/empty}
    <div>
        <img src="{$product.image|get_img_url}" alt="">
    </div>
    <div class="weui-cell noBorder ">
        <div class="weui-cell__bd">
            <!--<p class="">商品简介</p>-->
            <p class="cl-0000 fs08">{$product.name}</p>
        </div>
    </div>
    <div class="weui-cell">
        <div class="weui-label">
            <span>品牌</span>
        </div>
        <div class="weui-cell__bd">
            <span>{$product.brand.name}</span>
        </div>
    </div>
    <div class="weui-cell">
        <div class="weui-label">
            <span>香型</span>
        </div>
        <div class="weui-cell__bd">
            <span>{$product.scent}</span>
        </div>
    </div>
    <div class="weui-cell">
        <div class="weui-label">
            <span>含量</span>
        </div>
        <div class="weui-cell__bd">
            <span>{$product.ml}ml</span>
        </div>
    </div>
    <div class="weui-cell">
        <div class="weui-label">
            <span>商品编号</span>
        </div>
        <div class="weui-cell__bd">
            <span>{$code.code}</span>
        </div>
    </div>
    <div class="weui-cell">
        <div class="weui-label">
            <span>卖家</span>
        </div>
        <div class="weui-cell__bd borderImg">
            <img class="mr03" src="{$shop.logo|get_img_url}" alt="">
            <span>{$shop.name}</span>
        </div>
    </div>
    {eq name="code.status" value="1"}
    <div class="weui-cell">
        <div class="weui-cell__bd text-center">
            <p class="cl-e45">商品未上架</p>
        </div>
    </div>
    {/eq}
    {eq name="code.status" value="2"}
    <div class="weui-cell">
        <div class="weui-cell__bd text-center">
            <p class="cl-e45">请确认商品信息</p>
        </div>
    </div>
    <div class="flex-tab mtop10">
        <!--<a href="javascript:;" class="bg-c40 cl-f affirm">确 认</a>-->
        <a href="/" class="bg-fff">逛一逛</a>
    </div>
    {/eq}
    {eq name="code.status" value="3"}
    <div class="weui-cell">
        <div class="weui-cell__bd text-center">
            <p class="cl-e45">商品已出售</p>
        </div>
    </div>
    {/eq}
</div>
<!--<div class="flex-tab">-->
<!--<a href="javascript:;" class="bg-c40 cl-f">确 认</a>-->
<!--<a href="/" class="bg-fff">逛一逛</a>-->
<!--</div>-->
<!--未买产品-->
<div id="marginService" class="weui-popup__container">
    <div class="weui-popup__overlay"></div>
    <div class="weui-popup__modal">
        <div class="modal-content bg-f5">
            <div class="msui_nav msui_navTop noBorder">
                <a class="msui_navTop-back" href="javascript:history.back();"><i class="micon-back"></i></a>
                <h1 class="msui_navTop-title">防伪/收货</h1>
                <a href="" class="msui_navTop-right msui_navTop-cnav"><i class="micon-cnav"></i></a>
            </div>
            <div>
                <img src="__STATIC__/home/images/product12.png" alt="">
            </div>
            <a href="" class="serviceBtn cl-f bg-c40">进店逛一逛</a>
        </div>
    </div>
</div>
{/block}

{block name="javascript"}
<!--<script>-->
<!--$(function () {-->
    <!--$('.affirm').click(function () {-->
        <!--$.ajax({-->
            <!--type : 'POST',-->
            <!--url : '{:url("affirm")}',-->
            <!--data : {-->
                <!--'shop_id' : '{$shop.id}',-->
                <!--'product_id' : '{$product.id}',-->
                <!--'code' : '{$code.code}',-->
            <!--},-->
            <!--dataType : 'json',-->
            <!--success : function (msg) {-->

            <!--}-->
        <!--});-->
    <!--});-->
<!--});-->
<!--</script>-->
{/block}